package demo.controller;

import demo.service.FeignInterface;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FeignController {

    @Autowired
    private FeignInterface feignInterface;

    /**
     * 这里的url 是对外提供 被调用的
     * @return
     */
    @RequestMapping("/helloFeign")
    public String helloFeign(){
        return feignInterface.helloFeign();
    }
}
